import { IsNotEmpty } from "class-validator"

export class CreateArticleDto {
    @IsNotEmpty({message:'标题不能为空'})
    title:string
    @IsNotEmpty({message:'文章内容不能为空'})
    content:string
    @IsNotEmpty({message:'请选择栏目'})
    categoryId:number
}
